
function get_user_info($username,$password)
{
    $session = New-Object Microsoft.PowerShell.Commands.WebRequestSession
    # $session.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36"
    Invoke-WebRequest -UseBasicParsing -Uri "http://10.12.129.213/api/Account/Login/" `
    -Method "POST" `
    -WebSession $session `
    -Headers @{
    "Accept"="application/json, text/plain, */*"
    # "Referer"="http://localhost:8889/"
    } `
    -ContentType "application/json" `
    -Body "{`"username`":`"$username`",`"password`":`"$password`"}"
    return $res.RawContent
    # return $res.RawContent
}

 
get_user_info $args[0] $args[1]

